package com.secondHandPlatform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.secondHandPlatform.entity.Goods;
import com.secondHandPlatform.entity.Image;
import com.secondHandPlatform.mapper.GoodsMapper;
import com.secondHandPlatform.service.IGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author team
 * @since 2023-05-18
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {
    @Autowired
    private GoodsMapper goodsmapper;

    @Override
    public List<Goods> findAllGoods() {
        LambdaQueryWrapper<Goods> wrapper = new LambdaQueryWrapper<>();
//        wrapper.select(Goods.class, Image::getImgUrl);
        return goodsmapper.selectList(null);
    }
}
